import { TurboModule } from '@rnoh/react-native-openharmony/ts';
import { TM } from "@rnoh/react-native-openharmony/generated/ts"
import capiInstances from 'libcamera_kit.so';

export class RTNCameraKitTurboModule extends TurboModule implements TM.RTNCamerakit.Spec {
  addFn(a: number, b: number): Promise<number> {
    return new Promise((resolve) => resolve(capiInstances.addFn(a, b)));
  }

  add(a: number, b: number): Promise<number> {
    return new Promise((resolve) => resolve(a + b));
  }

  takePhoto(): Promise<any> {
    return new Promise((resolve) => null);
  }
}